package objs;

import service.Play;

import java.awt.*;

public class Bulletobj extends Pojo{
    public Bulletobj() { }

    public Bulletobj(Image image, int x, int y, int width, int height, double speed, Play frame) {
        super(image, x, y, width, height, speed, frame);

    }

    @Override
    public void paintSelf(Graphics gImage) {
        gImage.drawImage(image,x,y,width,height,null);
        y-=speed;
        if(y<=0){
            Play.removeList.add(this);
        }
    }
}
